package com.dlg.user.dao.mysql.mappers.user;

import com.dlg.user.dao.mysql.annotation.OddJobRepository;
import com.dlg.user.domain.user.OjUserEnterpriseAttribute;
import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;

/**
 * Created by zhangjinxia on 2017/8/7.
 */
@OddJobRepository
public interface OjUserEnterpriseAttributeMapper {

    void save(@Param("entAttribute") OjUserEnterpriseAttribute ojUserEnterpriseAttribute);

    OjUserEnterpriseAttribute findOneByUserId(@Param("userId") BigInteger userId);

    OjUserEnterpriseAttribute findById(@Param("id") BigInteger id);

    void updateByUserId(@Param("entAttribute")OjUserEnterpriseAttribute enterpriseAttribute);
}
